import request from '@/utils/request'



// 查询商品信息列表
export function dianpuList(query) {
  return request({
    url: '/system/dianpu/dianpuList',
    method: 'get',
    params: query
  })
}


// 查询商品信息详细
export function dianpuid(productId) {
  return request({
    url: '/system/dianpu/dianpuid/' + productId,
    method: 'get'
  })
}


// 修改商品信息
export function dianpuedit(data) {
  return request({
    url: '/system/dianpu/dianpuedit',
    method: 'put',
    data: data
  })
}


export function shigongList(query) {
  return request({
    url: '/system/shigong/shigongList',
    method: 'get',
    params: query
  })
}

export function getshigongId(constructionId) {
  return request({
    url: '/system/shigong/getshigongId/' + constructionId,
    method: 'get'
  })
}



export function shigongEdit(data) {
  return request({
    url: '/system/shigong/shigongEdit',
    method: 'put',
    data: data
  })
}





export function zulinList(query) {
  return request({
    url: '/system/zulin/zulinList',
    method: 'get',
    params: query
  })
}

export function zulinId(rentalId) {
  return request({
    url: '/system/zulin/zulinId/' + rentalId,
    method: 'get'
  })
}



export function zuLinEdit(data) {
  return request({
    url: '/system/zulin/zuLinEdit',
    method: 'put',
    data: data
  })
}
